<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/WEB-INF/common/public.jspf"%>
<%@ include file="/WEB-INF/common/easyui.jspf"%>
<link rel="stylesheet" href="/css/mycss.css">
<title>添加供应商</title>
<script type="text/javascript">
	$(function (){
		
		$("#addSupplier").form("disableValidation");
		$("#submit").click(function(){	
			$('#addSupplier').form({    
			    url:"/course/updateCourse",    
			    onSubmit: function(){  
			    	
			    	$("#addSupplier").form("enableValidation");
					if(!$("#addSupplier").form("validate")){
						
						return false;
					}    
			    },    
			    success:function(){
				    	parent.$.messager.alert('提示信息','跟新成功!','info');
				    	
				    
				        parent.$("#win").dialog("close",true);
			    	
			    }    
			});    

			$('#addSupplier').submit(); 
			
		
			
		});
		
		$("#reset").click(function (){
			
			$("#addSupplier").form("reset");
		});
		
		
	})

</script>

</head>
<body clsss="mybody" class="myfm">

<form id="addSupplier" method="get" action="">  
	<input type="hidden" name='oldId' value='${requestScope.courseId}' /> 
	<input type="hidden" name='update' value='1' /> 
    <div class="myfitem">   
        <label for="courseId">课程编号:</label>   
        <input class="easyui-validatebox" type="text" name="courseId" value='${requestScope.courseId}' data-options="required:true" />   
    </div> 
    	<br/>
     <br/>
     <div class="myfitem">   
        <label for="courseName">课程名称:</label>   
        <input class="easyui-validatebox" type="text" name="courseName" value='${requestScope.courseName}' data-options="required:true" />   
    </div>     
   
    <div >   
        <a id="submit"  class="easyui-linkbutton" >提交</a>
        <a id="reset"  class="easyui-linkbutton" >重置</a>
    </div>   
    
         
       
</form>  



</body>
</html>